<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns="http://www.w3.org/1999/xhtml" version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	
	<ul id="menuAdmin">
		<li class="numeroDeLi"><a id="a" href="${pageContext.request.contextPath}/Controlador/procesarEleccion.jsp?dest=pedidos">Pedidos</a></li>
		<c:if test="${logeado == 'SuperAdmin' }">
			<li class="numeroDeLi"><a id="b" href="${pageContext.request.contextPath}/Controlador/procesarEleccion.jsp?dest=administradores">Administradores</a></li>
		</c:if>
		<li class="numeroDeLi"><a id="c" href="${pageContext.request.contextPath}/Controlador/procesarEleccion.jsp?dest=slider">Slider</a></li>
		<li class="numeroDeLi"><a id="d" href="${pageContext.request.contextPath}/Controlador/procesarEleccion.jsp?dest=productos">Productos</a></li>
	</ul>
	
	<script>
		var a = document.getElementsByClassName("numeroDeLi");
		var elemento = document.getElementById("menuAdmin");
		if(a.length == 3){
			elemento.setAttribute("style","width: 200px;");
		}else{
			elemento.setAttribute("style","width: 355px;");
		}
	</script>
</jsp:root>
